package com.csap.framework.oauth2.server.model;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import com.csap.framework.annotation.apidoc.Description;
import com.csap.framework.oauth2.server.entity.RolesEntity;
import com.csap.mybatisplus.annotation.TableLogic;
import com.csap.mybatisplus.extension.activerecord.CloneModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2021-07-25 23:51:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "角色", value = "roles对象")
@Description(value = "角色Model")
public class RolesModel extends CloneModel<RolesModel, RolesEntity> {
    @ApiModelProperty(description = "角色ID", value = "角色ID")
    private Long roleId;
    @ApiModelProperty(description = "角色名称", value = "角色名称")
    private String name;
    @ApiModelProperty(description = "描述", value = "描述")
    private String descr;
    @ApiModelProperty(description = "创建时间", value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "角色类型1平台2客户端3系统角色")
    private Integer type;
    @ApiModelProperty(value = "角色类型ID")
    private String typeId;
    @ApiModelProperty(value = "部门Id")
    private Long deptId;
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    @ApiModelProperty("是否删除")
    private Boolean del;
    @ApiModelProperty("是否可以删除")
    private Boolean availableDel;
    @ApiModelProperty(description = "是否默认角色", value = "是否默认角色")
    private Integer defaults;
    @ApiModelProperty(value = "权限")
    private Set<String> permissions;
}
